-- GENERATED SPELL FOR [Wretched Belcher] --


function spell0_26624(pUnit, Event) --@Bile Vomit,Self--
pUnit:FullCastSpellOnTarget(49703,pUnit)
pUnit:RegisterEvent('Sorts_26624', 10000, 1)
end

function spell1_26624(pUnit, Event) --@Bile Vomit,Self--
pUnit:FullCastSpellOnTarget(59018,pUnit)
pUnit:RegisterEvent('Sorts_26624', 10000, 1)
end

function spell2_26624(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26624', 599, 1)
end

function spell3_26624(pUnit, Event) --@Disease Cloud,Self--
pUnit:FullCastSpellOnTarget(16345,pUnit)
pUnit:RegisterEvent('Sorts_26624', 0, 1)
end

function Sorts_26624(pUnit, Event)
local choix_sorts_26624 = math.random(0, 3)
if choix_sorts_26624 == 0 then
pUnit:RegisterEvent('spell0_26624', 1, 1)
end
if choix_sorts_26624 == 1 then
pUnit:RegisterEvent('spell1_26624', 1, 1)
end
if choix_sorts_26624 == 2 then
pUnit:RegisterEvent('spell2_26624', 1, 1)
end
if choix_sorts_26624 == 3 then
pUnit:RegisterEvent('spell3_26624', 1, 1)
end
end

function mob26624_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26624', math.random(1500, 3000), 1)
end

function mob26624_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26624_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26624_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26624, 1, 'mob26624_Action')
RegisterUnitEvent(26624, 2, 'mob26624_Leave')
RegisterUnitEvent(26624, 3, 'mob26624_Kill')
RegisterUnitEvent(26624, 4, 'mob26624_Die')
